﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using HamsterDelivery.Menus;

namespace HamsterDelivery.Menus.Options
{
    public class NewGameOption : Menu.Option
    {
        private HamsterGame game;

        public NewGameOption(HamsterGame game, Menu menu, int x, int y) : base(menu, x, y)
        {
            this.game = game;
        }

        public override void draw(Graphics g)
        {
            g.DrawImage(Resources.B_MENU_SELECT_ICON, new Point(X, Y));
        }

        public override void doAction()
        {
            game.Level.loadLevel(game.Level.LevelCounter);
            game.InGame = true;
            game.InMenu = false;
        }
    }
}
